export function msToDate (time) {
  var datetime = new Date(time)
  var year = datetime.getFullYear()
  var month = datetime.getMonth()
  var date = datetime.getDate()
  var hour = datetime.getHours()
  var minute = datetime.getMinutes()
  var second = datetime.getSeconds()
  var result1 = year +
  '-' +
  (month + 1 >= 10 ? month + 1 : '0' + (month + 1)) +
  '-' +
  (date + 1 < 10 ? '0' + date : date) +
  ' ' +
  (hour + 1 < 10 ? '0' + hour : hour) +
  ':' +
  (minute + 1 < 10 ? '0' + minute : minute) +
  ':' +
  (second + 1 < 10 ? '0' + second : second)
  var result2 = year +
  '-' +
  (month + 1 >= 10 ? month + 1 : '0' + (month + 1)) +
  '-' +
  (date + 1 < 10 ? '0' + date : date)
  return [result1, result2]
}
